Compare commits

...

4 Commits

Author SHA1 Message Date
a881d3e62a Add nvim-qt configuration
Set font and colorscheme for `nvim-qt`.
2021-07-10 14:49:16 +01:00
2ab332db65 Don't use tmux navigation mappings on Windows
Since `tmux` integration is not enabled on Windows, don't use the
`vim-tmux-natigation` command mappings for movingin between splits.
2021-07-10 14:46:52 +01:00
dbff00b6fc Make init.vim work on Windows
Symbolic links committed to Git repositories do not work on Windows.
Repalce the `init.vim` symbolic link with a regular file which loads
`vimrc`, this should work on all platforms.
2021-07-10 14:43:39 +01:00
9cc1ac8d87 Fix statusline background higlights in gui 2021-07-10 14:42:12 +01:00
4 changed files with 35 additions and 19 deletions

9
ginit.vim Normal file
View File

@ -0,0 +1,9 @@
if exists(':GuiFont')
if platform#is_windows()
GuiFont Consolas:h9
else
GuiFont Source\ Code\ Pro:h9
endif
endif
colorscheme fresh

View File

@ -1 +1 @@
vimrc runtime vimrc

View File

@ -64,6 +64,7 @@ nnoremap k gk
nnoremap <leader>w :w!<CR> nnoremap <leader>w :w!<CR>
" Switch panes in a tmux aware way " Switch panes in a tmux aware way
if !has('win32')
nnoremap <silent> <C-h> :TmuxNavigateLeft<CR> nnoremap <silent> <C-h> :TmuxNavigateLeft<CR>
nnoremap <silent> <C-j> :TmuxNavigateDown<CR> nnoremap <silent> <C-j> :TmuxNavigateDown<CR>
nnoremap <silent> <C-k> :TmuxNavigateUp<CR> nnoremap <silent> <C-k> :TmuxNavigateUp<CR>
@ -83,6 +84,12 @@ else
tnoremap <silent> <C-w>k <C-w>N:TmuxNavigateUp<CR> tnoremap <silent> <C-w>k <C-w>N:TmuxNavigateUp<CR>
tnoremap <silent> <C-w>l <C-w>N:TmuxNavigateRight<CR> tnoremap <silent> <C-w>l <C-w>N:TmuxNavigateRight<CR>
endif endif
else
nnoremap <silent> <C-h> <C-w>h
nnoremap <silent> <C-j> <C-w>j
nnoremap <silent> <C-k> <C-w>k
nnoremap <silent> <C-l> <C-w>l
endif
" Quick tabs " Quick tabs
nnoremap <leader>tn :tabnew<Space> nnoremap <leader>tn :tabnew<Space>

View File

@ -17,7 +17,7 @@ let g:statusline#dark_grey = {'fg': ['244', '#808080'], 'bg': ['233', '#12121
function! s:hi(group, color) abort function! s:hi(group, color) abort
execute 'highlight '.a:group execute 'highlight '.a:group
\.' ctermfg='.a:color['fg'][0].' ctermbg='.a:color['bg'][0] \.' ctermfg='.a:color['fg'][0].' ctermbg='.a:color['bg'][0]
\.' guifg='.a:color['fg'][1].' guibg='.a:color['fg'][1] \.' guifg='.a:color['fg'][1].' guibg='.a:color['bg'][1]
endfunction endfunction
" StatusLineLight is shows the mode and cursor information, it is dynamically " StatusLineLight is shows the mode and cursor information, it is dynamically