2014-02-06 2 views
1

읽을 수 dbext 출력 :VIM : 나는 실행 해요

"------------dbext-------------- 
" Microsoft SQL Server 
let g:dbext_default_profile_microsoft_production = 'type=SQLSRV:integratedlogin=1:dsnname=SQLOLEDB.1:srvname=SVR:extra=-t' 

과 함께하고 "추가 = -t"없이 시도 같은으로 : 윈도우 7,

7.4 제의 vimrc에 넣고 GVIM 결과 :

set nocompatible 
set number 
set list 
set noerrorbells visualbell t_vb= 

"gui 
set guifont=Consolas:h14 
colorscheme blue 

"tab and indent settings 
set shiftwidth=2 
set tabstop=2 
set noexpandtab 

"split windows 
nnoremap <C-k> :exe "vertical resize +10"<CR> 
nnoremap <C-j> :exe "vertical resize -10"<CR> 

"NERDTree 
set autochdir "set working dir to active buffer 
let NERDTreeChDirMode=2 "set dir for NERDTree 
nnoremap <leader>n :NERDTreeToggle .<CR> 

"autocompletion 
set omnifunc=syntaxcomplete#Complete 
" SuperTab 
let g:SuperTabDefaultCompletionType = "<C-X><C-O>" 
let g:SuperTabClosePreviewOnPopupClose = 1 

"<Ctrl-l> redraws the screen, remove highlighting 
set hlsearch 

autocmd GUIEnter * set visualbell t_vb= 

"directories 
set backupdir=C:\G_Drive\code\vim\vimdir 
set directory=C:\G_Drive\code\vim\vimdir 


source $VIMRUNTIME/vimrc_example.vim 
source $VIMRUNTIME/mswin.vim 
behave mswin 

"pathogen 
filetype off "run pathogen before plugin config 
execute pathogen#infect() 
"call pathogen#runtime_append_all_bundles() 
call pathogen#incubate() 
call pathogen#helptags() 
syntax on 
filetype plugin indent on 
filetype plugin on 

"syntastic 
let g:syntastic_check_on_open=1 
let g:syntastic_enable_signs=1 
" On by default, turn it off for html 
"let g:syntastic_mode_map = { 'mode': 'active', 
" \ 'active_filetypes': [], } 
" \ 'passive_filetypes': ['html'] } 
"let g:syntastic_jshint_exec='$HOME/AppData/Roaming/npm/jshint.cmd' 
"let g:syntastic_jshint_exec='C:/Users/Drupal Intermediate/AppData/Roaming/npm/jshint.cmd' 
let g:syntastic_javascript_checkers = ['jshint'] 
let g:syntastic_html_checkers = ['w3'] 
let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd'] 

"------------dbext-------------- 
" Microsoft SQL Server 
let g:dbext_default_profile_microsoft_production = 'type=SQLSRV:integratedlogin=1:dsnname=SQLOLEDB.1:srvname=SVR:extra=-t' 

set shell=powershell 
set shellcmdflag=-command 

"info bar 
set laststatus=2 
set statusline= 
set statusline+=file:\ %F%m%h%r\ %y\ \| 
set statusline+=buff:\ %n\| 
set statusline+=%= 
set statusline+=\|row:\ %l\|col:\ %c%V 
set statusline+=\|\ %p%% 

"maps 
nnoremap p :put<cr> 
nnoremap <S-Space> :bn<cr>:syntax sync fromstart<cr> 
nnoremap <silent> <C-l> :nohl<CR><C-l> 
"nnoremap - mzI/* <esc>A */<esc>`z 
nnoremap <C-Tab> :set tabstop=2<bar>set noexpandtab<bar>%retab!<cr> 

답변

2

: 여기 enter image description here

내 전체의 vimrc입니다 주요한 ÿþ 특성은 그것을 멀리 준다; 그것은 바이트 순서 표시 (16 진수 0xFFFE)이며, 16 비트 유니 코드 인코딩에 사용됩니다. Vim은 제대로 감지하지 못했습니다. :help 'fileencodings'을 수정하여 해결 방법을 알아 보거나 버퍼를 (다시) 읽으려면

:edit! ++enc=ucs-2le