.vimrc

changeset 203
f95de43bb256
parent 202
f7aa9b7b7800
child 204
f6a2f233a33b
equal deleted inserted replaced
202:f7aa9b7b7800 203:f95de43bb256
109 endif 109 endif
110 " }}} 110 " }}}
111 111
112 112
113 " Key maps, mostly plugin stuff on F-keys {{{ 113 " Key maps, mostly plugin stuff on F-keys {{{
114
115 " F1 - Unite to switch buffers
114 nmap <silent> <F1> :Unite -auto-resize -direction=dynamicbottom buffer<CR> 116 nmap <silent> <F1> :Unite -auto-resize -direction=dynamicbottom buffer<CR>
117 " S-F1 - Unite to switch windows or tabs
115 nmap <silent> <S-F1> :Unite -winheight=5 -quick-match -short-source-names window tab:no-current<CR> 118 nmap <silent> <S-F1> :Unite -winheight=5 -quick-match -short-source-names window tab:no-current<CR>
116 nmap <silent> <F2> :VimFilerExplorer<CR> 119 nmap <silent> <F2> :VimFilerExplorer<CR>
117 nmap <silent> <F3> :VimShell<CR> 120 nmap <silent> <F3> :VimShell<CR>
118 map <silent> <F4> :noh<CR> 121 map <silent> <F4> :noh<CR>
119 nmap <silent> <F5> :GundoToggle<CR> 122 nmap <silent> <F5> :GundoToggle<CR>
125 nmap <silent> <S-F2> :Unite -start-insert file_rec:!<CR> 128 nmap <silent> <S-F2> :Unite -start-insert file_rec:!<CR>
126 else 129 else
127 nmap <silent> <S-F2> :Unite -start-insert file_rec/async:!<CR> 130 nmap <silent> <S-F2> :Unite -start-insert file_rec/async:!<CR>
128 endif 131 endif
129 132
130 " F-n keys call out to normal mode from insert mode 133 " stop opening help by mistake
131 " only :noh seems smart to do.
132 imap <F1> <ESC> 134 imap <F1> <ESC>
133 "imap <F2> <C-O><F2> 135
134 "imap <F3> <C-O><F3> 136 " let F4, :noh work as-is in insert mode
135 imap <F4> <C-O><F4> 137 imap <F4> <C-O><F4>
136 "imap <F5> <C-O><F5>
137 "imap <F6> <C-O><F6>
138 "imap <F7> <C-O><F7>
139 "imap <F8> <C-O><F8>
140 138
141 " chdir to the directory of the open buffer 139 " chdir to the directory of the open buffer
142 map <leader>cd :cd %:p:h<cr>:pwd<cr> 140 map <leader>cd :cd %:p:h<cr>:pwd<cr>
143 141
144 map <leader>pp :setlocal paste!<cr> 142 map <leader>pp :setlocal paste!<cr>
147 nmap <C-h> <C-w>h 145 nmap <C-h> <C-w>h
148 nmap <C-j> <C-w>j 146 nmap <C-j> <C-w>j
149 nmap <C-k> <C-w>k 147 nmap <C-k> <C-w>k
150 nmap <C-l> <C-w>l 148 nmap <C-l> <C-w>l
151 149
150 " clear all interestingwords with \\k since \K is ri.vim
152 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR> 151 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR>
153 "}}} 152 "}}}
154 153
155 154
156 " General settings {{{ 155 " General settings {{{
367 ">> Airline 366 ">> Airline
368 let g:airline#extensions#whitespace#enabled = 0 367 let g:airline#extensions#whitespace#enabled = 0
369 368
370 "keep bufferline from writing into the command line 369 "keep bufferline from writing into the command line
371 let g:bufferline_echo = 0 370 let g:bufferline_echo = 0
371
372 "cycle the bufferline with current buf in 2nd-to-last spot
372 let g:bufferline_rotate = 1 373 let g:bufferline_rotate = 1
373 let g:bufferline_fixed_index = -2 374 let g:bufferline_fixed_index = -2
374 375
375 376
376 ">> Signify 377 ">> Signify
384 385
385 ">> interestingwords 386 ">> interestingwords
386 " These are jellybeans colors and some complements 387 " These are jellybeans colors and some complements
387 let g:interestingWordsGUIColors = ['#C4A258', '#D8AD4C', '#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C'] 388 let g:interestingWordsGUIColors = ['#C4A258', '#D8AD4C', '#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C']
388 let g:interestingWordsRandomiseColors = 1 389 let g:interestingWordsRandomiseColors = 1
390
389 391
390 ">> neocomplcache 392 ">> neocomplcache
391 " Disable AutoComplPop. 393 " Disable AutoComplPop.
392 let g:acp_enableAtStartup = 0 394 let g:acp_enableAtStartup = 0
393 395

mercurial