diff options
| author | nin <nin@c-base.org> | 2018-02-11 16:11:08 +0100 |
|---|---|---|
| committer | nin <nin@c-base.org> | 2018-02-11 16:11:08 +0100 |
| commit | 9c54cf79dd969b06f22fa464476a77069e310775 (patch) | |
| tree | 434fc66f108b5e9b282a88b30662f06e7d1e7fcf /jeschli/2configs/vim.nix | |
| parent | c9a3eda0f4fc31f58d464b8d6b2e5eff9fd31719 (diff) | |
| parent | 1b922a012d53643cedc68ee1ce3f8d6b29e99ef6 (diff) | |
Merge branch 'master' of prism:stockholm
Diffstat (limited to 'jeschli/2configs/vim.nix')
| -rw-r--r-- | jeschli/2configs/vim.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/jeschli/2configs/vim.nix b/jeschli/2configs/vim.nix index 7721b1d..c13113f 100644 --- a/jeschli/2configs/vim.nix +++ b/jeschli/2configs/vim.nix @@ -27,6 +27,9 @@ in { name = "vim"; vimrcConfig.customRC = let colorscheme = ''colorscheme molokai''; + highlightTrailingWhiteSpaces = '' + au Syntax * syn match Garbage containedin=ALL /\s\+$/ + ''; setStatements = '' set autowrite set clipboard=unnamedplus @@ -42,6 +45,7 @@ in { remapStatements = '' imap jk <Esc> map gr :GoRun<Enter> " Map gr to execute go run + map tt :GoTest<Enter> " Map tt to execute go test map nf :NERDTreeToggle<CR> nnoremap <C-TAB> <c-w><c-w> nnoremap <S-TAB> :bnext<CR> @@ -74,11 +78,12 @@ in { ''; in '' ${colorscheme} + ${highlightTrailingWhiteSpaces} ${remapStatements} ${setStatements} ${settingsForElm} ${settingsForGo} - " I dont know what this line is about + " dont expand tabs in go files and show it with four whitespaces. autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 ''; vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins; |
