aboutsummaryrefslogtreecommitdiffstats
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2018-09-03 20:05:07 +0700
committerPeter Son Struschka <me@peter-struschka.com>2018-09-03 20:05:07 +0700
commit4f3c6a1ac4e5c445204c19354da35cfd50708e7a (patch)
tree630c96f48884f711e51a3c10254cf6287bba8ac6 /vim/.vimrc
parent16f6c212208f3acadafc7fa36305059d7d718abd (diff)
downloaddotfiles-4f3c6a1ac4e5c445204c19354da35cfd50708e7a.tar.gz
dotfiles-4f3c6a1ac4e5c445204c19354da35cfd50708e7a.tar.bz2
dotfiles-4f3c6a1ac4e5c445204c19354da35cfd50708e7a.tar.lz
dotfiles-4f3c6a1ac4e5c445204c19354da35cfd50708e7a.tar.xz
dotfiles-4f3c6a1ac4e5c445204c19354da35cfd50708e7a.tar.zst
dotfiles-4f3c6a1ac4e5c445204c19354da35cfd50708e7a.zip
Added vim config
Diffstat (limited to 'vim/.vimrc')
-rwxr-xr-xvim/.vimrc53
1 files changed, 53 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
new file mode 100755
index 0000000..7c602d3
--- /dev/null
+++ b/vim/.vimrc
@@ -0,0 +1,53 @@
+if empty(glob('~/.vim/autoload/plug.vim'))
+ silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
+ \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+ autocmd VimEnter * PlugInstall --sync
+endif
+
+filetype plugin indent on
+syntax on
+
+set virtualedit=onemore
+set backspace=indent,eol,start
+set fileformats="unix,dos,mac"
+
+set formatoptions-=t
+set formatoptions+=n
+set formatoptions+=1
+
+set tabstop=2
+set softtabstop=2
+set expandtab
+set nojoinspaces
+set autoindent
+
+set nowrap
+set linebreak
+set whichwrap=b,s,h,l,<,>,[,]
+set showbreak=↪
+set textwidth=80
+
+set list
+set listchars=tab:▸\ ,trail:·,extends:❯,precedes:❮,nbsp:·
+
+"set cursorline
+set hidden
+set number
+
+set incsearch
+set ruler
+set wildmenu
+
+runtime macros/matchit.vim
+
+call plug#begin('~/.vim/plugged')
+Plug 'tpope/vim-surround'
+Plug 'tpope/vim-commentary'
+Plug 'tpope/vim-endwise'
+
+Plug 'Lokaltog/vim-easymotion'
+
+Plug 'scrooloose/nerdtree'
+Plug 'junegunn/fzf'
+call plug#end()
+