Search
Duplicate

내 vim셋팅

Status
Notion
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/Users/son/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="agnoster" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in $ZSH/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(git) source $ZSH/oh-my-zsh.sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment # export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" prompt_context() { if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then prompt_segment black default "%(!.%{%F{yellow}%}.)$USER" fi } #for norminette alias norm="~/.norminette/norminette.rb" alias normr="norm -R CheckForbiddenSourceHeader" #gcc g++ alias gco="gcc -Wall -Wextra -Werror -o test" alias gpo="g++ -Wall -Wextra -Werror -o test" alias ls="lsd --no-symlink" alias ll="lsd -l --no-symlink" alias lt="lsd --tree --no-symlink" alias cat="bat --plain --paging never" # Added by c_formatter_42 export PATH="$PATH:/Users/son/norm-formatter/c_formatter_42" #for 42seoul subject alias cdsub="~/Desktop/42/42seoul/ft_server"
C
복사
call plug#begin('~/.vim/plugged') Plug 'pbondoer/vim-42header' Plug 'sainnhe/sonokai' Plug 'junegunn/rainbow_parentheses.vim' Plug 'preservim/nerdtree' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'cacharle/c_formatter_42.vim' call plug#end() " Syntax Highlighting if has ("syntax") syntax on endif " Settings set nu set showmatch set ruler set mouse=a set autoindent set cindent " Parenthesis hi MatchParen cterm=none ctermbg=green ctermfg=blue " Color if has('termguicolors') set termguicolors endif colorscheme sonokai " Variables let g:sonokai_style = 'default' let g:sonokai_enable_italic = 1 let g:sonokai_disable_italic_comment = 1 let g:hdr42user = 'hyson' let g:hdr42mail = 'hyson@student.42seoul.kr' let NERDTreeShowHidden=1 let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowCollapsible = '▾' " Mapping "inoremap jj <esc> nnoremap // <esc>I// <esc> inoremap uni42 #include <unistd.h> inoremap decpc void<tab><tab>ft_putchar(char ch)<cr>{<cr>write(1, &ch, 1);<cr>} inoremap calpc ft_putchar();<esc>hi inoremap minit int<tab><tab>main(void)<cr>{<cr>return (0);<cr>}<cr><esc>kkO inoremap nn <esc> imap einit extern <cr><cr>minit nnoremap rain :RainbowParentheses<enter> nnoremap tree :NERDTreeToggle<enter> nnoremap header :Stdheader<enter> nnoremap zzz <esc>:CFormatter42<enter><esc> nnoremap rrr <esc>:e!<enter> "nnoremap qqq <esc>:q!<enter> "nnoremap jj <esc>I<tab><esc> "nnoremap kk <esc>I<esc>x "nnoremap ll <esc>I//<esc> "nnoremap ;; <esc>I<tab><esc>xxx nnoremap '' <esc><C-W>w "nmap ,,, rrrnnn''
C
복사