Last active
February 10, 2021 05:04
-
-
Save varkadov/47245739fafebb5f30108e87ae74b9e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "," | |
" set visualbell | |
" be iMproved, required | |
set nocompatible | |
" required | |
filetype off | |
" top offset for z + <enter> | |
set scrolloff=5 | |
" show lines numbers | |
set number | |
" show menu on tab press | |
set wildmenu | |
" incremental search | |
set is | |
" highlight search resaults | |
set hlsearch | |
" width of the shift with shift> command | |
set shiftwidth=4 | |
" space count in the tab | |
set tabstop=4 | |
" expent tabs in to spaces | |
set expandtab | |
" show uncompleted command | |
set showcmd | |
" ignore case when using a search pattern | |
set ignorecase | |
" override 'ignorecase' when pattern has upper case characters | |
set smartcase | |
" automatically set the indent of a new line | |
set ai | |
" smart indent | |
set si | |
" Setup hidden buffers | |
set hidden | |
syntax enable | |
" Key maps | |
" -------- | |
imap jj <Esc> | |
" Move line up/down | |
" https://vim.fandom.com/wiki/Moving_lines_up_or_down | |
" nnoremap <A-j> :m .+1<CR>== | |
" nnoremap <A-k> :m .-2<CR>== | |
" inoremap <A-j> <Esc>:m .+1<CR>==gi | |
" inoremap <A-k> <Esc>:m .-2<CR>==gi | |
" vnoremap <A-j> :m '>+1<CR>gv=gv | |
" vnoremap <A-k> :m '<-2<CR>gv=gv | |
" Micros | |
" ------ | |
" Example: move to the start of line, write text and go the the next line | |
let @h = '0iHello worldj' | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VunleVim/Vundle.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
" Plugin 'tpope/vim-fugitive' | |
" plugin from http://vim-scripts.org/vim/scripts.html | |
" Plugin 'L9' | |
" Git plugin not hosted on GitHub | |
" Plugin 'git://git.wincent.com/command-t.git' | |
" git repos on your local machine (i.e. when working on your own plugin) | |
" Plugin 'file:///home/gmarik/path/to/plugin' | |
" The sparkup vim script is in a subdirectory of this repo called vim. | |
" Pass the path to set the runtimepath properly. | |
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
" Install L9 and avoid a Naming conflict if you've already installed a | |
" different version somewhere else. | |
" Plugin 'ascenator/L9', {'name': 'newL9'} | |
" Plugin 'scrooloose/nerdtree' | |
Plugin 'dag/vim-fish' | |
Plugin 'bling/vim-airline' | |
Plugin 'easymotion/vim-easymotion' | |
Plugin 'tpope/vim-surround' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'irrationalistic/vim-tasks' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment