]> git.zndr.dk Git - dotfiles.git/commitdiff
Use consolas font in windows
authorJannik ZANDER <jannikz@gmail.com>
Wed, 4 May 2016 12:40:03 +0000 (14:40 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Wed, 4 May 2016 12:40:03 +0000 (14:40 +0200)
.minttyrc
.vimrc
bat/caps2ctrl.reg [new file with mode: 0644]

index 207d40bc72a9a04c7c2c7897be117783e662d884..7e8003865fd21e60303cb1543bdb60c1baf07a63 100644 (file)
--- a/.minttyrc
+++ b/.minttyrc
@@ -1,8 +1,11 @@
+BoldAsFont=no
+RightClickAction=paste
+Font=Consolas
+FontHeight=11
 Term=xterm-256color
+BoldAsColour=no
 Charset=UTF-8
 Locale= en_US
-FontHeight=10
-BoldAsFont=no
 
 Black=             7,  54,  66
 BoldBlack=         0,  43,  54
diff --git a/.vimrc b/.vimrc
index d48ba743eec7023d267582dbebb5ba0392a1e2b3..6e072318da3f6279bcd65b4ae09fcfade8211d6d 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -16,6 +16,7 @@ Plugin 'mileszs/ack.vim'
 Plugin 'brandonbloom/csearch.vim'
 Plugin 'chazy/cscope_maps'
 Plugin 'vim-scripts/taglist.vim'
+Plugin 'airblade/vim-gitgutter'
 
 call vundle#end()            " required
 filetype plugin indent on    " required
@@ -60,10 +61,20 @@ set ttimeoutlen=4000
 set tags+=tags;
 
 " For color
-"let g:solarized_termcolors=256
+let g:solarized_menu=0
 colorscheme solarized
 set background=dark
 
+if has("gui_running")
+  if has("gui_gtk2")
+    set guifont=Inconsolata\ 12
+  elseif has("gui_macvim")
+    set guifont=Menlo\ Regular:h14
+  elseif has("gui_win32")
+    set guifont=Consolas:h11
+  endif
+endif
+
 " For markdown
 let g:vim_markdown_folding_disabled = 1
 
@@ -73,6 +84,10 @@ let Tlist_GainFocus_On_ToggleOpen = 1
 let Tlist_Close_On_Select = 1
 nnoremap <C-l> :TlistToggle<CR>
 
+" Easy escape
+inoremap jj           <ESC>
+inoremap j<Space>     j
+
 " For local/private settings
 let $LOCALFILE=expand("$HOME/.vimrc_local")
 if filereadable($LOCALFILE)
diff --git a/bat/caps2ctrl.reg b/bat/caps2ctrl.reg
new file mode 100644 (file)
index 0000000..80776b6
--- /dev/null
@@ -0,0 +1,3 @@
+Windows Registry Editor Version 5.00\r
+[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]\r
+"Scancode Map"=hex:00,00,00,00,00,00,00,00,04,00,00,00,1d,00,3a,00,01,00,29,00,29,00,01,00,00,00,00,00
\ No newline at end of file