diff --git a/vimrc b/vimrc index 93d7ced..714dfa9 100644 --- a/vimrc +++ b/vimrc @@ -236,7 +236,7 @@ function s:SetPythonSettings() "{{{2 "autocmd FileType python setlocal omnifunc=pysmell#Complete let python_highlight_all=1 - "I don't want to have pyflakes errors in qfix, it interfering with + "I don't want to have pyflakes errors in qfix, it interfering with "Pep8/Pylint let g:pyflakes_use_quickfix = 0 @@ -244,7 +244,7 @@ function s:SetPythonSettings() "{{{2 autocmd BufWinLeave *.py mkview autocmd BufWinEnter *.py silent loadview - "Something bad happens for python comments - it places 2 spaces instead + "Something bad happens for python comments - it places 2 spaces instead "of 1 after the # sign. Workaround: let g:NERDCustomDelimiters = {'python': {'left': '#'}} let g:NERDSpaceDelims = 0 @@ -356,7 +356,7 @@ function s:SetRestSettings() "{{{2 command! -range=% WordFrequency ,call WordFrequency() function! CreateDict() range - let all = split(join(getline(a:firstline, a:lastline)), + let all = split(join(getline(a:firstline, a:lastline)), \ '[^A-Za-zęóąśłżźćńĘÓĄŚŁŻŹĆŃ]\+') let frequencies = {} for word in all @@ -373,6 +373,12 @@ function s:SetRestSettings() "{{{2 endfunction "}}} +function s:SetVimwikiSettings() "{{{2 + map :Vimwiki2HTML + map :Vimwiki2HTMLBrowse + map :VimwikiAll2HTML +endfunction +"}}} "remove all trailing whitespace for specified files before write autocmd BufWritePre * :call StripTrailingWhitespaces(0, 'n') @@ -395,6 +401,7 @@ autocmd FileType snippet call SetSnippetSettings() autocmd FileType sql call SetSqlSettings() autocmd FileType markdown call SetMarkdownSettings() autocmd FileType vim call SetVimSettings() +autocmd FileType vimwiki call SetVimwikiSettings() " }}} "TERMINAL: options for terminal emulators {{{ @@ -543,8 +550,6 @@ map wp VimwikiPrevWord "}}} " FUNCTIONS: usefull functions for all of the files {{{ -" Switch VCSCommand current used VCS system - " Simple wrapper for :make command function Make() echohl Statement