Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
feat(keymap): map ; to : in visual mode for faster command
Browse files Browse the repository at this point in the history
  • Loading branch information
LER0ever committed Apr 14, 2017
1 parent c1ddf04 commit 12c06d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
31 changes: 16 additions & 15 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
silent function! NVIM()
return has('nvim')
endfunction
silent function! DISTRO()
return substitute(system('lsb_release -si'), '[\n]\+', '', 'g')
endfunction
silent function! DISTROVERSION()
return substitute(system('lsb_release -sdr'), '[\n]\+', '', 'g')
endfunction
silent function! OSXVERSION()
return substitute(system("echo $(sw_vers -productVersion)"), '[\n]\+', '', 'g')
endfunction
silent function! DISTRO()
return substitute(system('lsb_release -si'), '[\n]\+', '', '')
endfunction
silent function! DISTROVERSION()
return substitute(system('lsb_release -sdr'), '[\n]\+', '', '')
endfunction
silent function! OSXVERSION()
return substitute(system("echo -n $(sw_vers -productVersion)"), '[\n]\+', '', '')
endfunction

" }

Expand Down Expand Up @@ -267,8 +267,6 @@

autocmd BufNewFile,BufRead *.coffee set filetype=coffee

autocmd FileType vim set tabstop=4 shiftwidth=4 expandtab

" Workaround vim-commentary for Haskell
autocmd FileType haskell setlocal commentstring=--\ %s
" Workaround broken colour highlighting in Haskell
Expand Down Expand Up @@ -328,6 +326,9 @@
" Remove keybinding for Ex Mode
nnoremap Q <nop>
" Remap ; to : in visual mode
nnoremap ; :
" End/Start of line motion keys act relative to row/wrap width in the
" presence of `:set wrap`, and relative to line for `:set nowrap`.
" Default vim behaviour is to act relative to text line in both cases
Expand Down Expand Up @@ -1390,10 +1391,10 @@

if filereadable(expand('~/.gvimrc'))
source ~/.gvimrc
else
if filereadable(expand('~/.vimrc.gui'))
source ~/.vimrc.gui
endif
else
if filereadable(expand('~/.vimrc.gui'))
source ~/.vimrc.gui
endif
endif

" }
Expand Down
4 changes: 2 additions & 2 deletions .vimrc.gui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set lines=40 " 40 lines of text instead of 24
if !exists("g:evervim_no_big_font")
if LINUX() && has("gui_running")
set guifont=Knack\ Nerd\ Font\ Regular\ 13,Noto\ Mono\ Regular\ 12,Menlo\ Regular\ 11,Consolas\ Regular\ 12,Courier\ New\ Regular\ 14
set guifont=Knack\ Nerd\ Font\ Regular\ 11,Noto\ Mono\ Regular\ 12,Menlo\ Regular\ 11,Consolas\ Regular\ 12,Courier\ New\ Regular\ 14
elseif OSX() && has("gui_running")
set guifont=Andale\ Mono\ Regular:h12,Menlo\ Regular:h11,Consolas\ Regular:h12,Courier\ New\ Regular:h14
elseif WINDOWS() && has("gui_running")
Expand All @@ -23,7 +23,7 @@
" NeoVim-Qt (here instead of ginit.vim)
if exists('g:GuiLoaded')
if !WINDOWS()
Guifont Knack Nerd Font:h11
Guifont Knack Nerd Font:h10
"call rpcnotify(1, 'Gui', 'Font', 'Knack Nerd Font 20')
else
Guifont Knack NF:h10
Expand Down

0 comments on commit 12c06d8

Please sign in to comment.