Преглед на файлове

Add vim showcmd, remove vertical maximisation

Vertical maximisation is removed in order to start practicing using
splits in a way that does not also expect a draw-style filebrowser (less
intuitive when your splits keeps expanding and compressing).
Weiyi Lou преди 10 години
родител
ревизия
15baa21fc5
променени са 3 файла, в които са добавени 8 реда и са изтрити 21 реда
  1. 1 1
      vim/plugins.vim
  2. 1 0
      vim/settings/colorscheme-statusline.vim
  3. 6 20
      vim/settings/screenmovement.vim

+ 1 - 1
vim/plugins.vim

@@ -1,5 +1,5 @@
 " Plugins {{{
-" vim: set sw=2 ts=2 sts=2 et tw=78 foldmarker={{{,}}} foldlevel=0 foldmethod=marker spell:
+" vim: set sw=2 ts=2 sts=2 et tw=78 foldmarker={{{,}}} foldlevel=1 foldmethod=marker spell:
 "
 "   Vim Plugin Setup Script
 "

+ 1 - 0
vim/settings/colorscheme-statusline.vim

@@ -12,6 +12,7 @@ set t_ut=
 let g:airline_powerline_fonts = 1
 set laststatus=2 " always show the status line.
 set noshowmode   " hide modes e.g. --INSERT-- with themed status lines.
+set showcmd      " display partial commands on the last line
 
 function! NormalPower()
   set background=dark

+ 6 - 20
vim/settings/screenmovement.vim

@@ -1,26 +1,12 @@
-" Screen Movement - Modeline and Notes {{{
-" vim: set sw=2 ts=2 sts=2 et tw=78 foldmarker={{{,}}} foldlevel=0 foldmethod=marker spell:
-"
-"   cinaeco/dotfiles Screen Movement shortcuts
-"
-"   Taken from spf13-vim
-"
-" }}}
-
 " Freedom of movement in visual block mode
 set virtualedit=block
 
-" Smart way to move between windows, with vertical maximisation (spf13-vim).
-map <C-j> <C-w>j<C-w>_
-map <C-k> <C-w>k<C-w>_
-map <C-l> <C-w>l<C-w>_
-map <C-h> <C-w>h<C-w>_
-
-" Smart way to move between windows, without vertical maximisation.
-"noremap <C-j> <C-w>j
-"noremap <C-k> <C-w>k
-"noremap <C-h> <C-w>h
-"noremap <C-l> <C-w>l
+" Smart way to move between windows
+" Enchancing these mapping with vertical maximisation (<C-w>_) is interesting
+noremap <C-j> <C-w>j
+noremap <C-k> <C-w>k
+noremap <C-h> <C-w>h
+noremap <C-l> <C-w>l
 
 " Adjust viewports to the same size
 map <Leader>= <C-w>=