새로운 정보 : clojure programming. 나는 vim 편집기를 사용하고 있습니다. 내가 설치 했음 더 나은 코드를 작성하는 플러그인 vim-clojure-static 플러그인. 하지만 예상대로 작동하지 않습니다. 내가 원하는 두 개의 모든 특수 키워드에 대한 들여 쓰기.vim-clojure-static 플러그인의 기본 설정을 변경하는 방법은 무엇입니까?
예를 들어, 다음은 core.clj 파일입니다.
(ns hello.core
(:gen-class)
(:import
(java.io FileNotFoundException)))
(defn -main
[& args]
(println "Hello, World!")
(try (slurp (first args))
(catch FileNotFoundException e (println (.getMessage e)))))
이것은 실제 들여 쓰기 부분입니다. 나는 이것을 좋아하지 않는다.
(ns hello.core
(:gen-class)
(:import
(java.io FileNotFoundException)))
(defn -main
[& args]
(println "Hello, World!")
(try (slurp (first args))
(catch FileNotFoundException e (println (.getMessage e)))))
그것은 의미, 내가 즉주어진 예에서을 시도 할 때마다 특정 키워드에 대한 이 공간 들여 쓰기를 원하는 : 내 코드가 같아야합니다.
한편 확실하지 않습니다. * 플러그인을 올바른 방법으로 설치했는지는 확실하지 않습니다. 여기 내 .vim 디렉토리 구조는 다음과 같습니다
여기$ tree ~/.vim/
/home/james/.vim/
|-- autoload
| `-- pathogen.vim
`-- bundle
`-- vim-clojure-static
|-- autoload
| `-- clojurecomplete.vim
|-- clj
| |-- dev-resources
| | |-- test-basic-sexp-indent.txt
| | |-- test-inherit-indent.in
| | |-- test-inherit-indent.out
| | |-- test-multibyte-indent.txt
| | |-- test-reader-conditional-indent.in
| | |-- test-reader-conditional-indent.out
| | |-- test-side-effects-in-indentexpr.in
| | `-- test-side-effects-in-indentexpr.out
| |-- project.clj
| |-- src
| | `-- vim_clojure_static
| | |-- generate.clj
| | `-- test.clj
| |-- test
| | `-- vim_clojure_static
| | |-- indent_test.clj
| | `-- syntax_test.clj
| `-- vim
| `-- test-runtime.vim
|-- doc
| `-- clojure.txt
|-- ftdetect
| `-- clojure.vim
|-- ftplugin
| `-- clojure.vim
|-- indent
| `-- clojure.vim
|-- LICENSE.txt
|-- README.markdown
`-- syntax
`-- clojure.vim
16 directories, 23 files
내 의 vimrc 파일 :
$ cat ~/.vimrc
set autoindent
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
execute pathogen#infect()
syntax on
filetype plugin indent on
아무도 말해 줄 수, 내가 잘못 어디 있어요? 공백으로 자동 들여 쓰기 할 수있는 방법 * 두? 감사.
아 멋지다! 효과가 있습니다. 감사. – james