mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 20:10:27 +01:00
Changed map of stripping trailing whitespaces, remapped arrow keys
This commit is contained in:
22
.vimrc
22
.vimrc
@@ -206,7 +206,7 @@ map <S-F9> :QFix<CR>
|
|||||||
map <S-F11> :LWin<CR>
|
map <S-F11> :LWin<CR>
|
||||||
|
|
||||||
"remove trailing whitespaces
|
"remove trailing whitespaces
|
||||||
map <C-e> :StripTrailingWhitespaces<CR>
|
nnoremap <leader>e :StripTrailingWhitespaces<CR>
|
||||||
|
|
||||||
" copy current buffer filename (full path)
|
" copy current buffer filename (full path)
|
||||||
nmap ,cn :silent call <SID>CopyFileName(1)<CR>
|
nmap ,cn :silent call <SID>CopyFileName(1)<CR>
|
||||||
@@ -220,6 +220,26 @@ map ]b :call OpenInWebBrowser()<cr>
|
|||||||
nnoremap <silent> <C-l> :nohl<CR>:syn sync fromstart<CR><C-l>
|
nnoremap <silent> <C-l> :nohl<CR>:syn sync fromstart<CR><C-l>
|
||||||
map <F3> :call <SID>ChangeVCS()<cr>
|
map <F3> :call <SID>ChangeVCS()<cr>
|
||||||
map <F4> :call <SID>ToggleHex()<cr>
|
map <F4> :call <SID>ToggleHex()<cr>
|
||||||
|
|
||||||
|
"Let me learn hjkl more in normal and visual modes. Leave insert mode alone
|
||||||
|
"(for now).
|
||||||
|
nnoremap <Up> ""
|
||||||
|
nnoremap <Up> <Esc>
|
||||||
|
nnoremap <Down> ""
|
||||||
|
nnoremap <Down> <Esc>
|
||||||
|
nnoremap <Left> ""
|
||||||
|
nnoremap <Left> <Esc>
|
||||||
|
nnoremap <Right> ""
|
||||||
|
nnoremap <Right> <Esc>
|
||||||
|
|
||||||
|
vnoremap <Up> ""
|
||||||
|
vnoremap <Up> <Esc>
|
||||||
|
vnoremap <Down> ""
|
||||||
|
vnoremap <Down> <Esc>
|
||||||
|
vnoremap <Left> ""
|
||||||
|
vnoremap <Left> <Esc>
|
||||||
|
vnoremap <Right> ""
|
||||||
|
vnoremap <Right> <Esc>
|
||||||
" }}}
|
" }}}
|
||||||
" FUNCTIONS: usefull functions for all of th files {{{
|
" FUNCTIONS: usefull functions for all of th files {{{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user