1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-18 03:50:30 +01:00

Changed map of stripping trailing whitespaces, remapped arrow keys

This commit is contained in:
2012-01-01 19:30:11 +01:00
parent 3a2343fbce
commit 36db7d93ff

24
.vimrc
View File

@@ -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 {{{
@@ -383,7 +403,7 @@ function <SID>ToggleHex()
let &modifiable=l:oldmodifiable let &modifiable=l:oldmodifiable
endfunction endfunction
"Toggle "Toggle
"}}} "}}}
" GUI: detect graphics mode, set colorscheme {{{ " GUI: detect graphics mode, set colorscheme {{{
if has('gui_running') if has('gui_running')