diff --git a/vimrc b/vimrc index 33f1795..93d7ced 100644 --- a/vimrc +++ b/vimrc @@ -170,6 +170,41 @@ let html_use_encoding = "utf-8" "Set the browser executable let g:browser = 'xdg-open' "}}} +"KEYS: User defined keyboard shortcuts {{{ + +"Cycle through buffers. +" map :bp +" map :bn + +map :call Make() + +map :echom CreateScratch() + +"QuickFix jumps +map :cp +map :cn +map :lprevious +map :lnext +map :QFix +map :LWin + +"remove trailing whitespaces +nnoremap e :call StripTrailingWhitespaces(1, 'n') +vnoremap e :call StripTrailingWhitespaces(1, 'v') + +" copy current buffer filename (full path) +nmap ,cn :silent call CopyFileName(1) +" copy current buffer filename (filename only) +nmap ,cs :silent call CopyFileName(0) + +"open link under cursor in Firefox +map ]b :call OpenInWebBrowser() + +"remove search highlight and refresh +nnoremap :nohl:syn sync fromstart +map :call ChangeVCS() +map :call ToggleHex() +" }}} "FileTypes: specific vim behaviour {{{ function s:SetPythonSettings() "{{{2 " Python specific options @@ -506,40 +541,6 @@ map wn VimwikiNextWord map wp VimwikiPrevWord " }}} "}}} -"KEYS: User defined keyboard shortcuts {{{ - -"Cycle through buffers. -" map :bp -" map :bn - -map :call Make() - -map :echom CreateScratch() - -"QuickFix jumps -map :cp -map :cn -map :lprevious -map :lnext -map :QFix -map :LWin - -"remove trailing whitespaces -nnoremap e :call StripTrailingWhitespaces(1, 'n') -vnoremap e :call StripTrailingWhitespaces(1, 'v') - -" copy current buffer filename (full path) -nmap ,cn :silent call CopyFileName(1) -" copy current buffer filename (filename only) -nmap ,cs :silent call CopyFileName(0) - -"open link under cursor in Firefox -map ]b :call OpenInWebBrowser() - -"remove search highlight and refresh -nnoremap :nohl:syn sync fromstart -map :call ToggleHex() -" }}} " FUNCTIONS: usefull functions for all of the files {{{ " Switch VCSCommand current used VCS system