Initial commit: Python dotfiles system
This commit is contained in:
61
templates/vim/vimrc.j2
Normal file
61
templates/vim/vimrc.j2
Normal file
@@ -0,0 +1,61 @@
|
||||
" Vim configuration for {{ machine }}
|
||||
" Generated by dotfiles system
|
||||
|
||||
" Basic settings
|
||||
set nocompatible
|
||||
set number
|
||||
set ruler
|
||||
set showcmd
|
||||
set incsearch
|
||||
set hlsearch
|
||||
|
||||
" Indentation
|
||||
set autoindent
|
||||
set smartindent
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
|
||||
" Colors and theme
|
||||
syntax enable
|
||||
set background=dark
|
||||
|
||||
{% if machine == 'desktop' %}
|
||||
" Desktop-specific settings
|
||||
set mouse=a
|
||||
set clipboard=unnamedplus
|
||||
{% endif %}
|
||||
|
||||
" File handling
|
||||
set encoding=utf-8
|
||||
set fileencoding=utf-8
|
||||
set backspace=indent,eol,start
|
||||
|
||||
" Backup settings
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
set noswapfile
|
||||
|
||||
" Search settings
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" Key mappings
|
||||
let mapleader = ","
|
||||
nnoremap <leader>w :w<CR>
|
||||
nnoremap <leader>q :q<CR>
|
||||
|
||||
{% if machine == 'server' %}
|
||||
" Server-specific: lighter config
|
||||
set laststatus=1
|
||||
{% else %}
|
||||
" Desktop/Laptop: enhanced features
|
||||
set laststatus=2
|
||||
set wildmenu
|
||||
set wildmode=list:longest
|
||||
{% endif %}
|
||||
|
||||
" Load local vimrc if exists
|
||||
if filereadable(expand("~/.vimrc.local"))
|
||||
source ~/.vimrc.local
|
||||
endif
|
||||
Reference in New Issue
Block a user