Skip to content

Instantly share code, notes, and snippets.

@tknzk
Created April 4, 2014 06:57
Show Gist options
  • Save tknzk/9969481 to your computer and use it in GitHub Desktop.
Save tknzk/9969481 to your computer and use it in GitHub Desktop.
yum install mercurial
yum install ncurses-devel
hg clone https://vim.googlecode.com/hg vim
cd vim
./configure --enable-multibyte --enable-xim --enable-fontset --disable-selinux --with-features=huge
make
make install
@tknzk
Copy link
Author

tknzk commented Apr 4, 2014

set number
set autoindent
set tabstop=4
set shiftwidth=4
set ignorecase
set smartcase
set wrapscan
set title
set ruler
set nolist
set showcmd
set showmatch
set nobomb
set expandtab
set hlsearch
set incsearch
set vb t_vb=
set laststatus=2
set statusline=%y%{GetStatusEx()}%F%m%r%=<%c:%l>
syntax on
colorscheme desert
 
nnoremap j gj
nnoremap k gk
 
function! GetStatusEx()
let str = ''
let str = str . '' . &fileformat . ']'
if has('multi_byte') && &fileencoding != ''
let str = '[' . &fileencoding . ':' . str
endif
return str
endfunction
 
if has("autocmd")
autocmd BufReadPost *
\ if line("'"") > 0 && line("'"") <= line("$") |
\   exe "normal g`"" |
\ endif
endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment