Last active
May 26, 2025 04:26
-
-
Save cho0h5/b365f8c4cb1741b87a60ee44f43e68b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
call plug#begin() | |
Plug 'tpope/vim-sensible' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'godlygeek/tabular' | |
Plug 'rust-lang/rust.vim' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'connorholyday/vim-snazzy' | |
Plug 'akinsho/toggleterm.nvim', {'tag' : '*'} | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
call plug#end() | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" plugin settings | |
let g:airline#extensions#tabline#enabled = 1 " tab enable | |
let g:airline_theme='minimalist' | |
let g:vim_markdown_folding_disabled = 1 | |
let g:rustfmt_autosave = 1 | |
set updatetime=20 | |
" settings | |
set nu | |
set mouse=a | |
colorscheme snazzy | |
" column line | |
set colorcolumn=80 | |
" tab settings | |
set tabstop=4 | |
set expandtab | |
set shiftwidth=4 | |
" save cursor position | |
if has("autocmd") | |
au BufReadPost * | |
\ if line("'\"") > 1 && line("'\"") <= line("$") | | |
\ execute "normal! g`\"" | endif | |
endif | |
" coc | |
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() | |
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" | |
" toggleterm | |
lua << EOF | |
require("toggleterm").setup{ | |
size = math.floor(vim.o.lines * 0.33), | |
open_mapping = [[<c-space>]] | |
} | |
EOF | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" fzf shortcut | |
nnoremap <C-p> :Files<CR> | |
" buffer shortcut | |
nnoremap <S-h> :bprevious<CR> | |
nnoremap <S-l> :bnext<CR> | |
" pane shorcut | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment