Improving the vimrc file.
This commit is contained in:
parent
7351144c63
commit
b1d33a22c8
2 changed files with 34 additions and 7 deletions
|
@ -1,4 +0,0 @@
|
||||||
set tabstop=8
|
|
||||||
set expandtab
|
|
||||||
set shiftwidth=4
|
|
||||||
set softtabstop=4
|
|
37
.vimrc
37
.vimrc
|
@ -4,13 +4,44 @@ filetype off
|
||||||
" Install Vundle:
|
" Install Vundle:
|
||||||
" $ git clone https://github.com/VundleVim/Vundle.vim.git \
|
" $ git clone https://github.com/VundleVim/Vundle.vim.git \
|
||||||
" ~/.vim/bundle/Vundle.vim
|
" ~/.vim/bundle/Vundle.vim
|
||||||
|
"
|
||||||
|
" Install all plugins:
|
||||||
|
" $ vim +PluginInstall +qall
|
||||||
|
|
||||||
" set the runtime path to include Vundle and initialize
|
" set the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
call vundle#begin()
|
||||||
" let Vundle manage Vundle, required
|
" let Vundle manage Vundle, required
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
Plugin 'bling/vim-airline'
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
|
|
||||||
syntax on
|
|
||||||
colorscheme molokai
|
syntax on " Enable syntax highlighting.
|
||||||
filetype plugin indent on
|
colorscheme molokai " Select the theme.
|
||||||
|
|
||||||
|
|
||||||
|
filetype plugin indent on " Load the plugin and indent file depending on the file type.
|
||||||
|
set expandtab " Use spaces instead of tabs.
|
||||||
|
set tabstop=8 " Number of spaces that a <Tab> in the file counts for.
|
||||||
|
set softtabstop=4 " Number of spaces that a <Tab> counts for while performing editing operations.
|
||||||
|
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent.
|
||||||
|
|
||||||
|
|
||||||
|
set laststatus=2 " Always display the status line.
|
||||||
|
set number " Show line numbers.
|
||||||
|
set cursorline " Highlight current line
|
||||||
|
set wildmenu " Visual autocomplete for command menu
|
||||||
|
set lazyredraw " Redraw only when we need to.
|
||||||
|
set showmatch " Highlight matching [{()}]
|
||||||
|
|
||||||
|
|
||||||
|
set incsearch " Search as characters are entered.
|
||||||
|
set hlsearch " Highlight matches.
|
||||||
|
" Turn off search highlight with <leader><space>.
|
||||||
|
nnoremap <leader><space> :nohlsearch<CR>
|
||||||
|
|
||||||
|
|
||||||
|
" Move vertically by visual line.
|
||||||
|
nnoremap j gj
|
||||||
|
nnoremap k gk
|
||||||
|
|
Loading…
Reference in a new issue