summaryrefslogtreecommitdiffstats
path: root/jeschli
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-02-07 10:08:36 +0100
committerjeschli <jeschli@gmail.com>2018-02-07 10:08:36 +0100
commit3d84bb54487f0b958e674545c6f9b7f3965ac835 (patch)
treeaa5b1ee22084044befe1c612cdb96a5770938839 /jeschli
parentb5935d0ec3bae4f2a26bb38bf8eb4296f1da6aa5 (diff)
j vim: +trailing White detection; *cosmetics
Diffstat (limited to 'jeschli')
-rw-r--r--jeschli/2configs/vim.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/jeschli/2configs/vim.nix b/jeschli/2configs/vim.nix
index 7721b1d..02ea95f 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
@@ -74,11 +77,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;